
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 User 分页列表
*/
export function getUserPagination(data: any) {
  return axios.get(`${context}/user/pagination`, { params: data });
}


/**
 * 获取 User 所有数据
*/
export function getUserAllList(data: any) {
  return axios.get(`${context}/user/all`, { params: data });
}


/**
 * 获取 User 详情
*/
export function getUserDetailById(id: any) {
  return axios.get(`${context}/user/${id}`, { params:{id} });
}


/**
 * 新增 User
*/
export function addUser(data: any) {
  return axios.post(`${context}/user`, data);
}

/**
 * 修改 User
*/
export function updateUser(data: any) {
  return axios.put(`${context}/user`, data);
}

/**
 * 删除 User
*/
export function batchRemoveUser(data: any) {
  return axios.post(`${context}/user/batchRemove`, data);
}

    